#include "addperson.h"
#include "ui_addperson.h"
#include "addteacher.h"
#include "root.h"
#include "addstudent.h"
addperson::addperson(QWidget *parent) :
    QDialog(parent),
    ui(new Ui::addperson)
{
    ui->setupUi(this);
}

addperson::~addperson()
{
    delete ui;
}

void addperson::on_pushButton_clicked()
{
    this->hide();
    addteacher*p=new(addteacher);
    p->show();
}

void addperson::on_pushButton_3_clicked()
{
    this->close();
    root*p=new(root);
    p->show();
}

void addperson::on_pushButton_2_clicked()
{
    this->hide();
    addstudent*p=new(addstudent);
    p->show();
}
